(function ($){
    Drupal.behaviors.datepicker = {
        attach: function(context, settings){
            $('#date').datepicker({
                showOn: "button",
                buttonImage: "http://localhost/drupal/sites/all/modules/images/lich.gif",
                buttonImageOnly: true
            }

            );
        }
    }

}(jQuery));